<?php
require "../dao/vipdao.php";
class vip{

	private $vip;//业务模型
	public function __construct(){
		$dao=new vipdao();
		$this->vip=$dao->Chaxun();		
	}
	public function getvip(){
		return $this->vip;
	}
}
$vip=new vip();
$viplist=$vip->getvip();
//var_dump($vip->getvip());


?>
<table class="tab">
<tr>
	<td>VIP等级</td>
	<td>升级金币</td>
	<td>特权</td>
</tr>
<?php 
  foreach ($viplist as $item=>$vipr){ ?>
 <tr>
	<?php foreach ($vipr as $i=>$value){?>
	<td width="70px"><?php echo $value; ?></td>
	<?php } ?>
</tr> 
 <?php }?>
</table>
<form  action="../controller/handout.php?con=vip&action=tian" method="post">
<table>	
    
	<tr><td width="100px">等级：<input type='text' name='tlevel' placeholder="可输入数字"/></td></tr>
	<tr><td width="100px">升级金币：<input type='text' name='tjia' placeholder="可输入数字"/></td></tr>
	<tr><td width="100px">特权：<input type='text' name='tequan' placeholder="可输入中英数"/></td></tr>
    <tr><td><input type="submit"  value="添加VIP信息"/></td></tr>
    </table>
    </form>